FROM nginx:alpine3.20
LABEL maintainer="Caden"

RUN echo http://mirrors.aliyun.com/alpine/v3.20/main/ > /etc/apk/repositories \
    && echo http://mirrors.aliyun.com/alpine/v3.20/community/ >> /etc/apk/repositories \
    && apk add --no-cache tzdata \
    && apk upgrade curl \
    && apk upgrade libcurl \
    && apk upgrade zlib \
    && apk upgrade freetype \
    && apk upgrade libxml2 \
    && apk upgrade ncurses-libs \
    && apk upgrade ncurses-terminfo-base \
    && apk upgrade libcrypto1.1 \
    && apk upgrade libssl1.1 \
    && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && apk del tzdata \
    && rm -rf /var/cache/apk/* \
    && mkdir -pv /opt/apps /opt/pro

COPY ./nginx.conf /etc/nginx/nginx.conf

WORKDIR /opt/apps
